﻿@model List<Core.Contract.DataContract.RelaxAdvertiseDataContract>

@if (Model != null)
{
    var first = Model.FirstOrDefault(p => p.Type == 3);
    if (first != null)
    {
    <img src="~/@first.Image" alt="@first.Name" />
    }
    else
    {
    <div id='div-gpt-ad-1422374619991-0' style='width: 300px; height: 600px;'>
        <script type='text/javascript'>
            if (screen.width >= 768) {
                googletag.cmd.push(function () { googletag.display('div-gpt-ad-1422374619991-0'); });
            } else {
                $('#div-gpt-ad-1422374619991-0').remove().hide();
            }
        </script>
    </div>
    }
}
else
{
    <div id='div-gpt-ad-1422374619991-0' style='width: 300px; height: 600px;'>
        <script type='text/javascript'>
            if (screen.width >= 768) {
                googletag.cmd.push(function () { googletag.display('div-gpt-ad-1422374619991-0'); });
            } else {
                $('#div-gpt-ad-1422374619991-0').remove().hide();
            }
        </script>
    </div>
}